package com.apex.restful.domain;

import com.apex.restful.entity.TBsdtDictionaryParent;
import com.edu.orm.repository.CustomRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by 王建 on 2017/7/4.
 */
@Transactional
public interface DictionaryParentRepository extends CustomRepository<TBsdtDictionaryParent,Long> {

    @Query("select t from TBsdtDictionaryParent t where t.state = 1 ")
    List<TBsdtDictionaryParent> findAllByState();
}
